RCS Template Message
Message object to be selected as Template Message.
S.No. | Attribute | Required | Datatype | Details |
---|---|---|---|---|
3.1. | template_message | Yes | Object | Specifying the message object as Template message. |
3.1.1. | channel_template | Yes | Object | Contains the channel and template details. |
3.1.1.1. | RCS | Yes | Object | Specifying the channel |
3.1.1.1.1. | template_id | Yes | String | Template identification |
3.1.1.1.2. | language_code | Yes | String | The BCP-47 language code, such as en-US or sr-Latn. English is the default language_code. |
3.1.1.1.3. | parameters | No | Object | Required if the template has variables. Concrete values must be present for all defined parameters in the template. |
{
"app_id": "01H0MFFJFX0YAWYA5XG4D3MRTA",
"recipient": {
"identified_by": {
"channel_identities": [
{
"channel": "RCS",
"identity": "919876543210"
}
]
}
},
"message": {
"template_message": {
"channel_template": {
"RCS": {
"template_id": "test_rcs_template",
"language_code": "en",
"parameters": {
"cust_name": "Rajesh",
"amount": "Rs. 5,000",
"discount": "30%”
}
}
}
}
}
}